@import './variables.scss';
@import './mixin.scss';
@import './sidebar.scss';

h1,h2,h3,h4,h5,h6{
  margin: 0;
}
a{
  text-decoration: none;
}
ul,ol{
  list-style: none;
  margin: 0;
  padding: 0;
}
.h100p {
  height: 100% !important;
}
.w100p {
  width: 100% !important;
}

$m-p-list:5,10,16,20;
@each $c in $m-p-list{
  .mt#{$c}{
    margin-top: '#{$c}px!important';
  }
  .ml#{$c}{
    margin-left: '#{$c}px!important';
  }
  .mr#{$c}{
    margin-right: '#{$c}px!important';
  }
  .mb#{$c}{
    margin-bottom: '#{$c}px!important';
  }
  .pt#{$c}{
    padding-top: '#{$c}px!important';
  }
  .pl#{$c}{
    padding-left: '#{$c}px!important';
  }
  .pr#{$c}{
    padding-right: '#{$c}px!important';
  }
  .pb#{$c}{
    padding-bottom: '#{$c}px!important';
  }
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}
a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.flexRow {
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  flex-direction: row;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
}

.flexCol {
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  flex-direction: column;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
}
.cursor {
  cursor: pointer;
}
// 滚动条样式-------------------------------------------------------
.scrollStyle::-webkit-scrollbar {/*滚动条整体样式*/
  width: 6px;     /*高宽分别对应横竖滚动条的尺寸*/
}
.scrollStyle::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2);
  background   : #909399;
}
.scrollStyle::-webkit-scrollbar-track {/*滚动条里面轨道*/
  box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background   : #ededed;
}

// 表格错位问题
.el-table th.gutter{
  display: table-cell!important;
}

// 省略号
.slh{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
